ACLOCAL_AMFLAGS = -Im4
AUTOMAKE_OPTIONS = subdir-objects

bin_PROGRAMS = godotapkfixer
godotapkfixer_LDADD = \
  src/minizip/libminizip.la \
  src/zlib/libz.la
godotapkfixer_LDFLAGS = \
  $(EXTRA_LDFLAGS)
godotapkfixer_SOURCES = \
  src/main.cpp \
  src/ResStringPool.cpp
  
noinst_LTLIBRARIES=src/minizip/libminizip.la src/zlib/libz.la
src_zlib_libz_la_SOURCES = \
  src/zlib/adler32.c \
  src/zlib/compress.c \
  src/zlib/crc32.c \
  src/zlib/deflate.c \
  src/zlib/gzclose.c \
  src/zlib/gzlib.c \
  src/zlib/gzread.c \
  src/zlib/gzwrite.c \
  src/zlib/infback.c \
  src/zlib/inffast.c \
  src/zlib/inflate.c \
  src/zlib/inftrees.c \
  src/zlib/trees.c \
  src/zlib/uncompr.c \
  src/zlib/zutil.c
src_minizip_libminizip_la_CFLAGS = \
  -UVERSION \
  -UPACKAGE \
  -UPACKAGE_NAME \
  -UPACKAGE_URL \
  -UPACKAGE_VERSION \
  -UPACKAGE_TARNAME \
  -UPACKAGE_STRING \
  -UPACKAGE_BUGREPORT \
  -DHAVE_LZMA \
  -DHAVE_ZLIB \
  -DHAVE_STDBOOL_H \
  -DHAVE_STDINT_H \
  -DHAVE_LIMITS_H \
  -DHAVE_CONFIG_H \
  -DLZMA_API_STATIC \
  -Isrc/minizip/lib/liblzma \
  -Isrc/minizip/lib/liblzma/check \
  -Isrc/minizip/lib/liblzma/lz \
  -Isrc/minizip/lib/liblzma/lzma \
  -Isrc/minizip/lib/liblzma/rangecoder \
  -Isrc/minizip/lib/liblzma/common \
  -Isrc/minizip/lib/liblzma/api
src_minizip_libminizip_la_SOURCES = \
  src/minizip/lib/liblzma/check/check.c \
  src/minizip/lib/liblzma/check/crc32_fast.c \
  src/minizip/lib/liblzma/check/crc32_table.c \
  src/minizip/lib/liblzma/rangecoder/price_table.c \
  src/minizip/lib/liblzma/common/alone_decoder.c \
  src/minizip/lib/liblzma/common/alone_encoder.c \
  src/minizip/lib/liblzma/common/common.c \
  src/minizip/lib/liblzma/common/filter_encoder.c \
  src/minizip/lib/liblzma/lz/lz_decoder.c \
  src/minizip/lib/liblzma/lz/lz_encoder.c \
  src/minizip/lib/liblzma/lz/lz_encoder_mf.c \
  src/minizip/lib/liblzma/lzma/fastpos_table.c \
  src/minizip/lib/liblzma/lzma/lzma_decoder.c \
  src/minizip/lib/liblzma/lzma/lzma_encoder.c \
  src/minizip/lib/liblzma/lzma/lzma_encoder_optimum_fast.c \
  src/minizip/lib/liblzma/lzma/lzma_encoder_optimum_normal.c \
  src/minizip/lib/liblzma/lzma/lzma_encoder_presets.c \
  src/minizip/mz_compat.c \
  src/minizip/mz_os.c \
  src/minizip/mz_strm_buf.c \
  src/minizip/mz_strm.c \
  src/minizip/mz_strm_lzma.c \
  src/minizip/mz_strm_mem.c \
  src/minizip/mz_strm_pkcrypt.c \
  src/minizip/mz_strm_split.c \
  src/minizip/mz_strm_zlib.c \
  src/minizip/mz_zip.c
if LINUX
src_minizip_libminizip_la_SOURCES += \
  src/minizip/mz_os_posix.c \
  src/minizip/mz_strm_posix.c
src_minizip_libminizip_la_CFLAGS += \
  -Dunix \
  -U__linux__
endif
if OSX
src_minizip_libminizip_la_SOURCES += \
  src/minizip/mz_os_posix.c \
  src/minizip/mz_strm_posix.c
src_minizip_libminizip_la_CFLAGS += \
  -Dunix
endif
if WINDOWS
src_minizip_libminizip_la_SOURCES += \
  src/minizip/mz_os_win32.c \
  src/minizip/mz_strm_win32.c
endif
